package com.bj58.di.factory;

import javax.inject.Inject;

import com.bj58.di.entity.Book;
import com.bj58.di.service.IBookService;
import com.google.inject.Singleton;

@Singleton
public class BookFactory {

	private IBookService bookService;
	
	@Inject
	public void setBookService(IBookService bookService) {
		this.bookService = bookService;
	}


	public Book getBook(){
		return bookService.getBook();
	}

}
